home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.0 / card_15869.txt < prev    next >
Text File  |  1989-02-26  |  17KB  |  472 lines

  1. -- card: 15869 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 15575
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on opencard
  8.   hide menubar
  9. end opencard
  10.  
  11. on closecard
  12.   if the short name of button id 4 is "Action On" then click at 39,326
  13. end closecard
  14.  
  15. on domenu which
  16.   if which is "New Card" or which is "Cut card" or which is "Delete Card" then
  17.     beep 3
  18.     exit domenu
  19.   end if
  20.   if which is "Protect Stack..." then
  21.     beep 3
  22.     answer "You don't want to do that!"
  23.     exit domenu
  24.   end if
  25.   if which is "Delete Stack..." then
  26.     play boing
  27.     answer "You really don't want to do that!"
  28.     exit domenu
  29.   end if
  30.   pass domenu
  31. end domenu
  32.  
  33.  
  34.  
  35. -- part 3 (field)
  36. -- low flags: 00
  37. -- high flags: 0007
  38. -- rect: left=84 top=27 right=342 bottom=510
  39. -- title width / last selected line: 0
  40. -- icon id / first selected line: 0 / 0
  41. -- text alignment: 0
  42. -- font id: 3
  43. -- text size: 9
  44. -- style flags: 0
  45. -- line height: 12
  46. -- part name: The Facts
  47. ----- HyperTalk script -----
  48.  
  49. on mousewithin
  50.   if the OptionKey is down then
  51.  
  52.     if the locktext of the target is true then
  53.       put true into DidUnlock
  54.       set locktext of target to false
  55.     else
  56.       put false into DidUnlock
  57.     end if
  58.  
  59.     set the cursor to 2
  60.     repeat while (the OptionKey is down) and (item 1 of the rect of target <= item 1 of the mouseLoc) and (item 1 of the mouseLoc <= item 3 of the rect of target) and (item 2 of the rect of target <= item 2 of the mouseLoc) and (item 2 of the mouseLoc <= item 4 of the rect of target)
  61.       if the Mouse is down then
  62.         click at the MouseLoc
  63.         click at the ClickLoc
  64.         put selection into selectedWord
  65.  
  66.         if field CrossRef contains selectedWord then
  67.           set visible of card field selectedWord to true
  68.           wait until the mouseclick is true
  69.           set visible of card field selectedWord to false
  70.         else
  71.           beep
  72.           answer "Do you see any asterisk there?!" with "Oooh"
  73.           exit mousewithin
  74.         end if
  75.       end if
  76.     end repeat
  77.  
  78.     if DidUnlock then
  79.       set the locktext of the target to true
  80.     end if
  81.   end if
  82. end mousewithin
  83.  
  84.  
  85.  
  86.  
  87. -- part 1 (field)
  88. -- low flags: 00
  89. -- high flags: 0000
  90. -- rect: left=1 top=4 right=317 bottom=82
  91. -- title width / last selected line: 0
  92. -- icon id / first selected line: 0 / 0
  93. -- text alignment: 0
  94. -- font id: 3
  95. -- text size: 9
  96. -- style flags: 256
  97. -- line height: 12
  98. -- part name: Steve
  99.  
  100.  
  101. -- part 2 (field)
  102. -- low flags: 00
  103. -- high flags: 0000
  104. -- rect: left=188 top=5 right=22 bottom=429
  105. -- title width / last selected line: 0
  106. -- icon id / first selected line: 0 / 0
  107. -- text alignment: 1
  108. -- font id: 3
  109. -- text size: 12
  110. -- style flags: 256
  111. -- line height: 16
  112. -- part name: Name
  113.  
  114.  
  115. -- part 4 (button)
  116. -- low flags: 00
  117. -- high flags: A004
  118. -- rect: left=4 top=318 right=339 bottom=77
  119. -- title width / last selected line: 0
  120. -- icon id / first selected line: 0 / 0
  121. -- text alignment: 1
  122. -- font id: 0
  123. -- text size: 12
  124. -- style flags: 0
  125. -- line height: 16
  126. -- part name: Action Off
  127. ----- HyperTalk script -----
  128. on mouseUp
  129.   if the optionkey is down then
  130.     pass mouseup
  131.   end if
  132.  
  133.   if the short name of the target is "Action Off" then
  134.     get the script of background "information"
  135.     put "--" before it
  136.     put "--" before last line of it
  137.     set the script of background "information" to it
  138.     set the name of target to "Action On"
  139.   else
  140.     get the script of background "information"
  141.     delete word 1 of it
  142.     put "on " before it
  143.     delete word 1 of last line of it
  144.     put "end " before last line of it
  145.     set the script of background "information" to it
  146.     set the name of target to "Action Off"
  147.   end if
  148.  
  149. end mouseUp
  150.  
  151.  
  152.  
  153. -- part 6 (field)
  154. -- low flags: 81
  155. -- high flags: 0004
  156. -- rect: left=46 top=27 right=65 bottom=276
  157. -- title width / last selected line: 0
  158. -- icon id / first selected line: 0 / 0
  159. -- text alignment: 0
  160. -- font id: 3
  161. -- text size: 12
  162. -- style flags: 0
  163. -- line height: 16
  164. -- part name: HyperCard
  165.  
  166.  
  167. -- part 7 (field)
  168. -- low flags: 81
  169. -- high flags: 0004
  170. -- rect: left=20 top=86 right=148 bottom=190
  171. -- title width / last selected line: 0
  172. -- icon id / first selected line: 0 / 0
  173. -- text alignment: 0
  174. -- font id: 3
  175. -- text size: 12
  176. -- style flags: 0
  177. -- line height: 16
  178. -- part name: XFCNs
  179.  
  180.  
  181. -- part 8 (field)
  182. -- low flags: 81
  183. -- high flags: 0004
  184. -- rect: left=27 top=80 right=144 bottom=229
  185. -- title width / last selected line: 0
  186. -- icon id / first selected line: 0 / 0
  187. -- text alignment: 0
  188. -- font id: 3
  189. -- text size: 12
  190. -- style flags: 0
  191. -- line height: 16
  192. -- part name: XCMDs
  193.  
  194.  
  195. -- part 9 (field)
  196. -- low flags: 81
  197. -- high flags: 0004
  198. -- rect: left=37 top=80 right=151 bottom=264
  199. -- title width / last selected line: 0
  200. -- icon id / first selected line: 0 / 0
  201. -- text alignment: 0
  202. -- font id: 3
  203. -- text size: 12
  204. -- style flags: 0
  205. -- line height: 16
  206. -- part name: Library
  207.  
  208.  
  209. -- part 10 (field)
  210. -- low flags: 81
  211. -- high flags: 0004
  212. -- rect: left=71 top=82 right=152 bottom=327
  213. -- title width / last selected line: 0
  214. -- icon id / first selected line: 0 / 0
  215. -- text alignment: 0
  216. -- font id: 3
  217. -- text size: 12
  218. -- style flags: 0
  219. -- line height: 16
  220. -- part name: updater
  221.  
  222.  
  223. -- part 11 (field)
  224. -- low flags: 81
  225. -- high flags: 0004
  226. -- rect: left=55 top=93 right=195 bottom=313
  227. -- title width / last selected line: 0
  228. -- icon id / first selected line: 0 / 0
  229. -- text alignment: 0
  230. -- font id: 3
  231. -- text size: 12
  232. -- style flags: 0
  233. -- line height: 16
  234. -- part name: Macintosh
  235.  
  236.  
  237. -- part 12 (field)
  238. -- low flags: 80
  239. -- high flags: 0004
  240. -- rect: left=44 top=71 right=140 bottom=275
  241. -- title width / last selected line: 0
  242. -- icon id / first selected line: 0 / 0
  243. -- text alignment: 0
  244. -- font id: 3
  245. -- text size: 12
  246. -- style flags: 0
  247. -- line height: 16
  248. -- part name: drazga
  249.  
  250.  
  251. -- part 13 (field)
  252. -- low flags: 81
  253. -- high flags: 0004
  254. -- rect: left=55 top=74 right=125 bottom=263
  255. -- title width / last selected line: 0
  256. -- icon id / first selected line: 0 / 0
  257. -- text alignment: 0
  258. -- font id: 3
  259. -- text size: 12
  260. -- style flags: 0
  261. -- line height: 16
  262. -- part name: $100,000
  263.  
  264.  
  265. -- part 14 (field)
  266. -- low flags: 80
  267. -- high flags: 0004
  268. -- rect: left=41 top=82 right=169 bottom=318
  269. -- title width / last selected line: 0
  270. -- icon id / first selected line: 0 / 0
  271. -- text alignment: 0
  272. -- font id: 3
  273. -- text size: 12
  274. -- style flags: 0
  275. -- line height: 16
  276. -- part name: resources
  277.  
  278.  
  279. -- part 15 (field)
  280. -- low flags: 80
  281. -- high flags: 0004
  282. -- rect: left=49 top=64 right=199 bottom=345
  283. -- title width / last selected line: 0
  284. -- icon id / first selected line: 0 / 0
  285. -- text alignment: 0
  286. -- font id: 3
  287. -- text size: 12
  288. -- style flags: 0
  289. -- line height: 16
  290. -- part name: three
  291.  
  292.  
  293. -- part 16 (field)
  294. -- low flags: 81
  295. -- high flags: 0004
  296. -- rect: left=53 top=64 right=198 bottom=399
  297. -- title width / last selected line: 0
  298. -- icon id / first selected line: 0 / 0
  299. -- text alignment: 0
  300. -- font id: 3
  301. -- text size: 12
  302. -- style flags: 0
  303. -- line height: 16
  304. -- part name: laughed
  305.  
  306.  
  307. -- part 17 (field)
  308. -- low flags: 80
  309. -- high flags: 0004
  310. -- rect: left=54 top=63 right=180 bottom=291
  311. -- title width / last selected line: 0
  312. -- icon id / first selected line: 0 / 0
  313. -- text alignment: 0
  314. -- font id: 3
  315. -- text size: 12
  316. -- style flags: 0
  317. -- line height: 16
  318. -- part name: ART
  319.  
  320.  
  321. -- part contents for card part 3
  322. ----- text -----
  323. Developer Stack--
  324. Original Concept & Stack by Steve Drazga
  325. ¬©1987 ART* Incorporated
  326. Individual contributions are credited individually.
  327.  
  328. A continuing resource for Hypercard* developers.
  329.  
  330.            ‚Ä¢‚Ä¢‚Ä¢Items with an asterisk (*) hold additional information.  Hold down the 
  331.                                   option key and click on the word to access this information‚Ä¢‚Ä¢‚Ä¢
  332.              
  333.                ‚Ä¢It will be easier to read this card if you click on the 'Action Off' button‚Ä¢
  334.  
  335.  
  336. The purpose of this stack:
  337. This stack is designed for anyone developing Hypercard stacks.  It includes public domain and shareware XFCNs*, XCMDs*, HyperTalk functions and useful script segments.  It is a user supported effort and will constantly be growing.  The basic idea is to collect all the useful resources* a Hypercard developer needs into one place, making the development process much easier and faster.  This stack is designed as a learning tool.  Nothing is protected or hidden from the user.  Tear into the scripts until you understand what they do.  Play around with the XCMDs and XFCNs.
  338.  
  339.  
  340. How it works:
  341. This copy of the stack you are reading is the main library* for all the information.   It is being distributed through electronic bulletin boards, users groups, and other public domain sources.  About every three* weeks it will be updated to include all the latest ideas & techniques that may be useful to a Hypercard developer.  
  342.  
  343. Each update will be released in 2 formats.  The first format will be the original Developer stack, which you are now looking at.  The second format will be an updater* stack.  Since the original library stack will begin to grow quite large, anyone who already has this stack (like you) can get just the updater stack.  This method will make getting updates a lot less expensive for those people who download them from commercial bulletin boards.  
  344.  
  345. You may add as many cards as you like to this stack without affecting the operation of the updater stacks.  Just be certain not to rename or delete any of the backgrounds.  For a larger distribution of ideas, it would be better if you send new script segments, functions, XFCNS, & XCMDs to us for inclusion in stack updates.
  346.  
  347.  
  348. What you have to do:
  349. The only way this stack will succeed as a useful resource for developers is if everyone contributes.  It's easy to do, and you even get something in return.  If you have written any XFCNs, XCMDs, functions, scripts, or other HyperCard related items that you have found useful, send it to us, on a disk, to the address below.  In return, you will receive the latest version of the Developer Stack, and a warm feeling inside from  being a contributing member of the Macintosh* and Hypercard community.  Hypercard has made developers out of many people who would have never thought of programming before.  Now the Developer Stack is here to make distribution of all the great new ideas and techniques simple.
  350.  
  351.  
  352. Credits:
  353. I have tried to give credit for everything included in the stack.  There are a few items that have gone without credits because I don't know where they originally came from.  If you recognize any of them, and can attribute them to the correct person, please let me know.  Anything sent for inclusion in the stack, will be credited to the person who created it.  (You too can become famous and people will be able to talk behind your back, if you would only contribute.)
  354.  
  355.  
  356. My Committment:
  357. January 24, 1987 Bellevue Hospital... Oh, not that kind of committment.  Actually I am committed to bringing out updates of this stack about every three* weeks, as long as people contribute.  With all the action going on in the Hypercard community we can all benefit from new ideas and resources*, collected into one place.  This is just a small taste of what is to come in the updater stacks.  I will take contributions from any source with the following conditions:
  358.  
  359. 1) If you send something to be included in the stack, it should be debugged and ready to go.
  360. If it includes any scripts, they should be well commented, and have a header giving credit to yourself.  I will include shareware items in the stack, and make the appropriate notations.
  361.  
  362. 2) If you send something to be included in the stack, and want to receive the latest version of the Developer Stack, you MUST include a self-addressed stamped envelope.  If you don't, you won't get your disk back.
  363.  
  364. 3) If you have any ideas or comments about the stack, and where it should go (future direction-wise, not physically), LET ME KNOW!  Don't keep your ideas to yourself.  I would like to see this grow into a useful tool for ALL Hypercard users, not just the experts.  While this stack has been tested thoroughly, there still may be some bugs (did I here someone whisper MicroSoft Word 3.0?).  If you find any PUHLEASE let me know. Send me mail (USPS or electronic).
  365.  
  366. 4) I cannot guarantee that any specific contribution will be included in an update of the stack.  However, any that are included will be given full credit as to their original source.
  367.  
  368. How to reach me:
  369. (You gotta stand way up on your tippy toes...)
  370.  
  371. US MAIL:
  372. Steve Drazga*
  373. Box 388
  374. Southampton, PA  18966
  375. (215) 464-3733
  376.  
  377. or
  378.  
  379. ART Incorporated
  380. 315 North Washington Ave.
  381. Moorestown, NJ  08057
  382. (609) 778-3601
  383.  
  384. GEnie (I am on GEnie regularly):
  385. S.DRAZGA
  386.  
  387. Compuserve (I am on CIS less frequently than GEnie):
  388. 76530,1107
  389.  
  390.  
  391. What you should send as a contributor:
  392. 1) A disk with your contribution.  Since it probably won't fill up the entire disk, you can also include some stacks, sounds (I love those digitized sounds), or any other neat programs you have.
  393.  
  394. 2) A self-addressed stamped envelope - if you want your disk returned with a copy of the latest update of the Developer Stack.
  395.  
  396. 3) A note telling me what Hypercard is in 15 words or less (HA!).
  397.  
  398. 4) $100,000* in small bills, or your suggestions for the continuing growth of this stack as a developers' tool, if you happen to be low on cash.
  399.  
  400.  
  401. What if you just like to watch?
  402. You say you haven't got the hang of Hypercard yet.  You don't think you have anything that would interest other HC users?  You say you're still having trouble putting the disk in the right side up.  You say you can't download the upgrades (or upload the downgrades) because you're not a telecommunicatin' fool?  You say you can't get the upgrades from a users group because you wouldn't want to belong to any group that would have you as a member.  No Problem.  Have we got a deal for you.  For the price of a hamburger you can stay abreast (a breast?) of all the happening events in the Hypercard world.  Just send $5.00 (well, a pretty big hamburger) and you will get the latest version of the complete stack (be sure to let me know what version you have).  I'll also throw in the latest stacks and public domain software going around.  You don't even have to send a disk or a return envelope or anything.  Just your name & address, oh, and of course, THE MONEY!!!  WHAT A DEAL!
  403.  
  404.  
  405.  
  406. -- part contents for card part 6
  407. ----- text -----
  408. Registered Trademark of Apple Computer.  (He made me say it, Ma!)
  409.  
  410. -- part contents for background part 2
  411. ----- text -----
  412. Hypercard,three,
  413. XFCNs,XCMDs,library,updater,resources,Macintosh,$100,000,Drazga,laughed,ART
  414.  
  415.  
  416. -- part contents for card part 7
  417. ----- text -----
  418. External Function resources, used to extend the usefulness of HC.
  419.  
  420. -- part contents for card part 8
  421. ----- text -----
  422. External Command resources, used to extend the usefulness of HC.
  423.  
  424. -- part contents for card part 9
  425. ----- text -----
  426. Since it is a repository for alot of different types of information on HC, I call it a library.  Besides, who wrote this stack, anyway?
  427.  
  428. -- part contents for card part 10
  429. ----- text -----
  430. This is neat.  It will automatically copy all the new cards and resources into the right places in the Developers stack with just a click of a button.  
  431.  
  432. -- part contents for card part 11
  433. ----- text -----
  434. Registered trademark of Apple Computer.  Hey, wait a minute.  Angus Macintosh might have something to say about that.  (I wonder how that goes over in Scotland -- "Yeah, I just bought a Macintosh").
  435.  
  436. -- part contents for card part 12
  437. ----- text -----
  438. Steve Drazga...
  439. Wait a minute, isn't he the guy that is putting out the Developer stack?  What a sport!
  440.  
  441. -- part contents for card part 13
  442. ----- text -----
  443. American dollars or Japanese yen only.  None of that Canadian stuff, eh.
  444.  
  445. -- part contents for card part 14
  446. ----- text -----
  447. I'm not talking about the kind of resources you move with resedit.  I'm talking about the kind of resources you use to make life easier for yourself.  A remote control is this kind of a resource.
  448.  
  449. -- part contents for card part 15
  450. ----- text -----
  451. If lots of people send in their tricks and techniques, it may come out at two week intervals.  If everyone sits on their backsides staring at 9 point type on a computer screen like, for example, YOU, then it may come out only once a month or so.  The point is, there are lots of people doing lots of Hypercard programming.  We just have to get together.
  452.  
  453. -- part contents for card part 16
  454. ----- text -----
  455. "Ha!  You bought a Macintosh?!  Isn't that cute.  It's got a cute little screen.  It must be fun to play with.  And look at those cute little pictures.  I guess you have to be pretty stupid to need little pictures, huh..."
  456. Anybody who was part of the Macintosh front lines, in 1984 and 1985 remembers that.  Guess they finally realized that IBM users are just as stupid as Mac users, with PS/2 et al.
  457.  
  458. -- part contents for card part 17
  459. ----- text -----
  460. ART Incorporated is a Macintosh consulting & software development firm located in Moorestown, NJ.  For more information on how you can integrate the Macintosh system into your working environment, give us a call at (609) 778-3601.
  461.  
  462. -- part contents for card part 1
  463. ----- text -----
  464.  
  465.  
  466.  
  467.  
  468. Developer Stack
  469.  
  470. -- part contents for card part 2
  471. ----- text -----
  472. Innovative Hypercard Stackware